home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -in_the_mag- / pdselect / ttflib / ttflib68060 / install-ttflib < prev    next >
Text File  |  1999-09-22  |  2KB  |  93 lines

  1. ; install ttflib package
  2.  
  3.  
  4. (if (patmatch "(68000|68010|68020|68030|68040)" (database "cpu"))
  5.     (abort "A 68060 or above processor is required for this version" )
  6. )
  7.  
  8. (set #lib-dest
  9.     (askdir
  10.         (prompt "Enter Drawer where ttf.library should be installed?")
  11.         (help @askdir-help)
  12.         (default "Libs:")
  13.     )
  14. )
  15.  
  16. (set #tool-def (cat @default-dest "ttftools"))
  17. (set #tool-dest
  18.     (askdir
  19.         (prompt "Enter Drawer where the ttflib tools should be installed? A new drawer will be created only if the drawer entered does not exist")
  20.         (help @askdir-help)
  21.         (default (cat @default-dest "ttftools"))
  22.         (newpath)
  23.     )
  24. )
  25.  
  26. (set #help-dest
  27.     (askdir
  28.         (prompt "Enter Drawer where the documentation should be installed?")
  29.         (help @askdir-help)
  30.         (default #tool-dest)
  31.         (newpath)
  32.     )
  33. )
  34.  
  35. (set #need-path (NOT(exists #tool-dest (noreq))))
  36.  
  37. (set @default-dest (#tool-dest))
  38.  
  39. (copylib
  40.     (prompt "Installing ttf.library")
  41.     (help @copylib-help)
  42.     (source "ttf.library")
  43.     (dest #lib-dest)
  44.     (confirm)
  45. )
  46.  
  47. (copyfiles
  48.     (prompt "Copying ttfmanager")
  49.     (help @copyfiles-help)
  50.     (source "ttfmanager")
  51.     (dest #tool-dest)
  52.     (files)
  53.     (confirm)
  54. )
  55.  
  56. (copyfiles
  57.     (prompt "Copying ttfmanager icon")
  58.     (help @copyfiles-help)
  59.     (source "ttfmanager.info")
  60.     (dest #tool-dest)
  61.     (files)
  62.     (confirm)
  63. )
  64.  
  65. (copyfiles
  66.     (prompt "Copying optional utilites")
  67.     (help @copyfiles-help)
  68.     (source "")
  69.     (choices "ttfinstall" "ttflist" "ttfcp" "ftview" "bitline")
  70.     (dest #tool-dest)
  71.     (files)
  72.     (confirm)
  73. )
  74.  
  75. (copyfiles
  76.     (prompt "Copying ttflib.guide")
  77.     (help @copyfiles-help)
  78.     (source "ttflib.guide")
  79.     (dest #help-dest)
  80.     (files)
  81.     (infos)
  82.     (confirm)
  83. )
  84.  
  85. ;(if #need-path
  86. ;  (startup "ttflib"
  87. ;    (prompt "Add path to tools in \"S:user-startup\"")
  88. ;    (help "This will add the ttflib tools to the system search path to make them more easily accessible.")
  89. ;    (command "path " #tool-dest " add\n")
  90. ;  )
  91. ;)
  92.  
  93.